<?php
// Note: This file is included from the Vcal/library/Control.CalendarForm.php control.

echo '<div id="Form" class="Account CalendarRemoveForm">
	<fieldset>
		<legend>'.$this->Context->GetDefinition('VcalCalendarManagement').'</legend>'
		.$this->Get_Warnings()
		.$this->Get_PostBackForm("frmCalendarRemove")
		.'<h2>'.$this->Context->GetDefinition("VcalSelectCalendarToRemove").'</h2>
		<input type="hidden" name="CalendarID" value="'.$CalendarID.'" maxlength="80" />
		<ul>
			<li>
				<label for="sCalendarSelect">'.$this->Context->GetDefinition('VcalCalendars').' <small>'.$this->Context->GetDefinition('Required').'</small></label>';
				$this->CalendarSelect->Attributes .= ' id="sCalendarSelect"';
				echo $this->CalendarSelect->Get()
			.'</li>
		</ul>';
		if ($CalendarID > 0) {
			$this->CalendarSelect->Attributes = ' id="sReplacementCalendar"';
			$this->CalendarSelect->RemoveOption($this->CalendarSelect->SelectedValue);
			$this->CalendarSelect->Name = 'ReplacementCalendarID';
			$this->CalendarSelect->SelectedValue = ForceIncomingInt('ReplacementCalendarID', 0);
			echo '<h2>'.$this->Context->GetDefinition('VcalSelectReplacementCalendar').'</h2>
			<ul>
				<li>
					<label for="sReplacementCalendar">'.$this->Context->GetDefinition('VcalReplacementCalendar').' <small>'.$this->Context->GetDefinition('Required').'</small></label>
					'.$this->CalendarSelect->Get().'
					<p class="Description">'.$this->Context->GetDefinition('VcalReplacementCalendarNotes').'</p>
				</li>
			</ul>
			<div class="Submit">
				<input type="submit" name="btnSave" value="'.$this->Context->GetDefinition('Remove').'" class="Button SubmitButton RemoveCalendarButton" />
				<a href="'.GetUrl($this->Context->Configuration, $this->Context->SelfUrl, '', '', '', '', 'PostBackAction=Calendars').'" class="CancelButton">'.$this->Context->GetDefinition('Cancel').'</a>
			</div>';
		}
		echo '</form>
	</fieldset>
</div>';
?>